#pragma once
#include "common.h"
#include "vec2d.h"

namespace pixel_graphics
{
  enum COLOR
  {
    BLACK = 0,
    RED = 40
  };

  typedef uint8_t color;

  void init();

  uint rows();
  uint cols();
  void clear();
  void set_pixel_graphics_mode();

  void put_pixel(color clr, uint position);
  void put_pixel(color clr, const point2d& position);

  uint8_t pixel_at(uint position);
  uint8_t pixel_at(const point2d& position);
}
